'''
Created on 2012-8-2

@author: johnny
'''
import unittest
import vmcontrol
import databases

class Test(unittest.TestCase):


    def setUp(self):
        self.qurey = databases.DBQuery('192.168.200.6', 'postgres')

    def tearDown(self):
        pass

#    def testExcuter(self):
#        hostUuid = self.qurey.get_hostUuid()
#        print hostUuid
#        print self.exe.reboot_host(hostUuid)
    def testVM(self):
        myvm = vmcontrol.VMBase('test-vm')
        myvm.create('192.168.200.6')

if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()
